package com.wen.service.impl;

import com.wen.bean.UserInfoBean;
import com.wen.service.ILoginService;
import org.springframework.stereotype.Service;

@Service
public class LoginService4User implements ILoginService {
    /**
     * 登录行为
     *
     * @param userInfoBean
     * @return
     */
    @Override
    public boolean doLogin(UserInfoBean userInfoBean) {
        System.out.println("登录成功：" + userInfoBean.getUserName());
        return true;
    }

    @Override
    public void doSleeping() {
        System.out.println("user is sleeping...");
    }
}
